package onjava.advance.ch01.sec04;

/**
 * @author yangdc
 * @date 9/20/25 00:13
 */
public class NonEnum {
    public static void main(String[] args) {
        Class<Integer> intCLass = Integer.class;
        try {
            for (Object en : intCLass.getEnumConstants()) {
                System.out.println(en);
            }
        } catch (Exception e) {
            System.out.println("Expected: " + e);
        }
    }
}
